﻿using System;
using Autodesk.Revit.DB;
using Autodesk.Revit.UI.Selection;

namespace YArchitech.HVAC
{
	public class DuctTerminalSelectionFilter : ISelectionFilter
	{
		public bool AllowElement(Element elem)
		{
			return elem is FamilyInstance && elem.Category.Id.IntegerValue == -2008013;
		}

		public bool AllowReference(Reference reference, XYZ position)
		{
			return false;
		}
	}
}
